export interface CawModel{
    id:any
    name:string
    image:string
    context:string
    createTime:any
    intro:string
    cawFileList:CawFileModel[]
    recommend:any

}

export interface CawParam{
    pageNum:number
    pageSize:number
    type:any
    isTopic:any
}

export interface CawFileModel{
    name:string
    url:string
}


export async function cawListApi(params:CawParam){
    return usePost<any>(`/web/cawList`,params)
}


export async function cawDetailApi(id:any){
    return useGet<CawModel>(`/web/findCawById/${id}`)
}

export async function downloadOss(path:string){
    return useGet(path, {responseType: 'blob'});
  }